package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.DishDto;
import com.itheima.pojo.Category;
import com.itheima.pojo.Dish;
import com.itheima.result.R;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: 斌
 * @DateTime: 2023年02月08日  23:42:05
 * @Description: com.itheima.service
 * @Version: 1.0
 */

@Transactional
public interface DishDtoService {
    @Transactional
    R saveDish(DishDto dishDto);

    R selectDish(Integer page, Integer pageSize, DishDto dishDto);

    R queryById(Long id);

    @Transactional
    R updateDish(DishDto dishDto);

    @Transactional
    R deleteDish(List<String> ids);

    @Transactional
    R updateStatus(Integer code, List<Long> ids);

    R listDish(DishDto dish);
}
